package hk.linkcredit.walletservice.wallet.service;

import hk.linkcredit.walletservice.wallet.domain.entity.WalletFlow;
import com.baomidou.mybatisplus.extension.service.IService;
import hk.linkcredit.walletservice.wallet.domain.entity.WalletOrder;
import hk.linkcredit.walletservice.wallet.domain.vo.WalletAccountInfo;
import hk.linkcredit.walletservice.wallet.domain.vo.WalletAccountReq;
import hk.linkcredit.walletservice.wallet.domain.vo.WalletExpend;
import hk.linkcredit.walletservice.wallet.domain.vo.WalletIncome;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 钱包流水表 服务类
 * </p>
 *
 * @author LinkCredit
 * @since 2022-06-10 15:18:10
 */
public interface WalletFlowService extends IService<WalletFlow> {

    List<WalletIncome> getWalletIncome(String custNo, String flowType);
    List<WalletExpend> getWalletExpend(String custNo);

    void createWalletFlowExpend(WalletOrder walletOrder);

    void createWalletFlowIncome(String walletType, WalletAccountReq walletAccountReq, WalletAccountInfo walletAccountInfo);

    BigDecimal getAmountSumByFoundType(String custNo, String flowType);
}
